export default {
  AddCount(state, payload) {
    payload.count++
  },
  addToCart(state, payload) {
    payload.checked = true
    state.cartList.push(payload)
  },
  allCheckClick(state, payload) {
    for (let item of state.cartList) {
      item.checked = !payload
    }
  }
}